package com.ly.user_system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.user_system.code.BaseEntity;
import com.ly.user_system.detail.BaseSysRoleMenuDetail;
import com.ly.user_system.dto.BaseSysRoleMenuDTO;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

@TableName("base_sys_role_menu")
@Data
@AutoMappers({
        @AutoMapper(target = BaseSysRoleMenuDTO.class),
        @AutoMapper(target = BaseSysRoleMenuDetail.class)
})
public class BaseSysRoleMenu extends BaseEntity {

    @TableField("menu_id")
    private Long menuId;
    @TableField("role_id")
    private Long roleId;
}